export default (nums?: number): string => {
  const num = nums || 32;
  let t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
    a = t.length,
    n = "";
  for (let i = 0; i < num; i++) {
    n += t.charAt(Math.floor(Math.random() * a));
  }
  return n;
};
